import 'package:json_annotation/json_annotation.dart';

part 'UserOrder.g.dart';

@JsonSerializable()
class UserOrder {
  UserOrder();

  String? id;
  String? userId;
  String? orderCode;
  String? orderTime;
  int? orderStatus;
  double? orderLat;
  double? orderLng;
  String? shippingId;
  int? shippingStatus;
  String? shippingDeliveryTime;
  String? shippingCompleteTime;
  String? note;
  String? shopId;
  double? postage;
  String? creationDate;
  String? modificationDate;
  double? totalAmount;
  double? freightAmount;
  double? payAmount;
  String? orderType;
  int? payChannel;
  String? logisticsCode;
  int? shippingMethod;
  String? selfPickupQrcode;

  factory UserOrder.fromJson(Map<String,dynamic> json) => _$UserOrderFromJson(json);
  Map<String, dynamic> toJson() => _$UserOrderToJson(this);
}
